package com.fypg.module.medical.controller.app.internethospital.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fypg.framework.common.util.json.databind.StringLocalDateTimeSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "用户 APP - 互联网医院 VO")
@Data
public class AppInternetHospitalVO {

    @JsonProperty("hospitalID")
    @Schema(description = "医院主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "21371")
    private String hospitalId;

    @Schema(description = "医院名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    private String hospitalName;

    @JsonProperty("hospitalAreaID")
    @Schema(description = "区域ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17973")
    private String hospitalAreaId;

    @Schema(description = "区域名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "17973")
    private String hospitalAreaName;

    @Schema(description = "级别类型(1.甲等 2.乙等 3.丙等)", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    private String gradeType;

    @Schema(description = "医院地址")
    private String address;

    @Schema(description = "特色功能", requiredMode = Schema.RequiredMode.REQUIRED)
    private String specialFunction;

    @Schema(description = "等级类型(0.私企1.一级 2.二级 3.三级)", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    private String levelType;

    @JsonProperty("appID")
    @Schema(description = "APPID，小程序跳转需要用", example = "1585")
    private String appId;

    @Schema(description = "客户端类型1：网页 2：小程序", example = "1")
    private String clientType;

    @Schema(description = "应用地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    private String applicationUrl;

    @Schema(description = "应用地址跳转参数")
    private String queryParams;

    @Schema(description = "图标地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    private String iconUrl;

    @Schema(description = "备注", example = "你猜")
    private String remark;

    @JsonSerialize(using = StringLocalDateTimeSerializer.class)
    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime createTime;

}
